package com.fangngng.pushall.service;

import com.fangngng.pushall.entity.Role;

import java.util.List;

/**
 * @author fei.fang
 * @date 2021/4/13
 **/
public interface RoleService {

    /**
     * 添加新的role
     * @param role
     * @return
     */
    Role addRole(Role role);

    /**
     * 删除role
     * @param role
     * @return
     */
    Role deleteRole(Role role);

    /**
     * 编辑role
     * @param role
     * @return
     */
    Role editRole(Role role);

    /**
     * 查询role
     * @param role
     * @return
     */
    List<Role> page(int pageNumber, int pageSize, Role role);
}
